using System;

public class ISN_Security : ISN_Singleton<ISN_Security>
{
	public static Action<ISN_LocalReceiptResult> OnReceiptLoaded = delegate
	{
	};

	public static Action<ISN_DeviceGUID> OnGUIDLoaded = delegate
	{
	};

	public static Action<ISN_Result> OnReceiptRefreshComplete = delegate
	{
	};

	public void RetrieveLocalReceipt()
	{
	}

	public void RetrieveDeviceGUID()
	{
	}

	public void StartReceiptRefreshRequest()
	{
	}

	private void Event_GUIDLoaded(string data)
	{
		ISN_DeviceGUID obj = new ISN_DeviceGUID(data);
		OnGUIDLoaded(obj);
	}

	private void Event_ReceiptLoaded(string data)
	{
		ISN_LocalReceiptResult obj = new ISN_LocalReceiptResult(data);
		OnReceiptLoaded(obj);
	}

	private void Event_ReceiptRefreshRequestReceived(string data)
	{
		ISN_Result obj = ((!data.Equals("1")) ? new ISN_Result(false) : new ISN_Result(true));
		OnReceiptRefreshComplete(obj);
	}
}
